package com.bw.mine.login.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData

class FingerprintViewModel {
    private val _statusText = MutableLiveData<String>()
    private val _errorText = MutableLiveData<String?>()

    // 公开不可变状态（UI观察）
    val statusText: LiveData<String> = _statusText
    val errorText: LiveData<String?> = _errorText

    // 更新状态文本
    fun updateStatus(text: String) {
        _statusText.value = text
    }

    // 更新错误文本
    fun updateError(text: String?) {
        _errorText.value = text
    }
}